package com.active.dao;

import com.active.bean.ActiveTree;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ActiveTreeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ActiveTree record);

    int insertSelective(ActiveTree record);

    ActiveTree selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ActiveTree record);

    int updateByPrimaryKey(ActiveTree record);

    ActiveTree selectNextTree(@Param("listId")Integer listId, @Param("currentId") Integer currentId);

    ActiveTree selectPrevTree(@Param("listId")Integer listId, @Param("currentId") Integer currentId);

    int deleteByActiveListId(Integer activeListId);
}